﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StockTrader.FrontEnd.OrderTracker2010.Report
{
    public partial class frmReport : Form
    {
        private AccBook _rptSrc;

        public AccBook RptSrc
        {
            get { return _rptSrc; }
            set { _rptSrc = value; }
        }
        public frmReport()
        {
            InitializeComponent();
        }

        public frmReport(AccBook rptsrc)
        {
            try
            {
                this.Font = SystemFonts.MessageBoxFont;
                InitializeComponent();
                crViewer.ReportSource = rptsrc;
            }
            catch 
            {
            	MessageBox.Show("Cài Crystal Report đã: \\\\10.2.2.199\temp\\\\Anh Ha ito`\\\\CrystalReports10_5", "Oops!");
                return;
            }
            
        }
        private void frmReport_Load(object sender, EventArgs e)
        {
            
        }
    }
}
